<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改电池模组信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-assembly-edit" th:object="${tPartPatternAssembly}">
            <input name="patternAssemblyId" th:field="*{patternAssemblyId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块编码：</label>
                <div class="col-sm-8">
                    <input name="moduleCoding" th:field="*{moduleCoding}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块编号：</label>
                <div class="col-sm-8">
                    <input name="moduleModelNo" th:field="*{moduleModelNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池包编码：</label>
                <div class="col-sm-8">
                    <input name="batteryPackCoding" th:field="*{batteryPackCoding}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块规格代码：</label>
                <div class="col-sm-8">
                    <input name="moduleSpecificationCode" th:field="*{moduleSpecificationCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实际容量：</label>
                <div class="col-sm-8">
                    <input name="actualCapacity" th:field="*{actualCapacity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实际电压：</label>
                <div class="col-sm-8">
                    <input name="virtualVoltage" th:field="*{virtualVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实际质量：</label>
                <div class="col-sm-8">
                    <input name="actualQuality" th:field="*{actualQuality}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块流向：</label>
                <div class="col-sm-8">
                    <input name="monomerFlow" th:field="*{monomerFlow}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "cpart/battery";
        $("#form-assembly-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-assembly-edit').serialize());
            }
        }
    </script>
</body>
</html>